import 'package:fish_redux/fish_redux.dart';

//TODO replace with your own action
enum IntegralAddressEditAction { action,upSelectLb,upSwitch,upPhone,upName,upArea,upAddress }

class IntegralAddressEditActionCreator {
  static Action onAction() {
    return const Action(IntegralAddressEditAction.action);
  }

  static Action upSelectLb(int index) {
    return Action(IntegralAddressEditAction.upSelectLb,payload: index);
  }

  static Action upSwitch(bool isW) {
    return Action(IntegralAddressEditAction.upSwitch,payload:isW);
  }

  static Action upPhone(String phone) {
    return Action(IntegralAddressEditAction.upPhone,payload:phone);
  }

  static Action upName(String name) {
    return Action(IntegralAddressEditAction.upName,payload:name);
  }

  static Action upArea(String area) {
    return Action(IntegralAddressEditAction.upArea,payload:area);
  }

  static Action upAddress(String address) {
    return Action(IntegralAddressEditAction.upAddress,payload:address);
  }
}
